package com.jiangjiang.eshop.pay.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiangjiang.eshop.pay.dto.PayTransactionDTO;
import com.jiangjiang.eshop.pay.dto.PayTransactionEntity;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Author Jianghaowen
 * @Date 2021/9/30
 * @Description: TODO
 * @Version V1.0
 **/
@Mapper(componentModel = "spring")
public interface PayTransactionConvert {

    PayTransactionEntity convertDTO2Entity(PayTransactionDTO payTransactionDTO);

    List<PayTransactionDTO> convertEntities2DTOList(List<PayTransactionEntity> list);

    Page<PayTransactionDTO> convertPage2DTO(Page<PayTransactionEntity> selectPage);
}
